<template>
  <div class="header">
    <p>城市选择</p>
    <router-link to="/">
      <div class="iconfont back-icon">&#xe624;</div>
    </router-link>

  </div>
</template>

<script>
export default {
  name: 'CityHeader'
}
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl'
.header
  position relative
  overflow hidden // 文本占据了一行,把箭头挤到了横条下面,又因为设置的overflow,所以看不见了要设置绝对定位才能看到
  height $headerHeight
  line-height $headerHeight
  text-align center
  background $bgColor
  color #fff
  font-size 0.32rem
  .back-icon
    position absolute
    left 0
    top 0
    width 0.64rem // 宽度
    font-size 0.4rem
    color #fff
</style>
